package advance.app.service.impl;

import advance.app.dao.AppFileInfoMapper;
import advance.app.dao.AppSopFileInfoMapper;
import advance.app.pojo.AppFileInfo;
import advance.app.pojo.AppSopFileInfo;
import advance.app.service.AppFileInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AppSopFileInfoServiceImpl implements AppSopFileInfoMapper {

    @Autowired
    AppSopFileInfoMapper appSopFileInfoMapper;

    @Override
    public AppSopFileInfo getLatestInfoBySopId(Integer id) {
        return appSopFileInfoMapper.getLatestInfoBySopId(id);
    }

    @Override
    public List<AppSopFileInfo> getSopFileInfoByType(String area, String fileTpye) {
        return appSopFileInfoMapper.getSopFileInfoByType(area, fileTpye);
    }
}
